package org.xb.CoffeeDecorator;

/**
 * @Author
 * @Description
 * @Date created in 10:24 2023/12/7
 */
public class Main {
    public static void main(String[] args) {
        OrderCoffee c = new OrderCoffee();
        c.setPrice(15);
        AddMilkCoffee am = new AddMilkCoffee();
        AddSugarCoffee as = new AddSugarCoffee();
        am.setCoffee(c);
        as.setCoffee(am);
        System.out.println("费用= " + as.cost());
    }
}
